package com.czk.springcloud.dao;

import com.czk.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/12/26 23:05
 */
@Mapper
public interface OrderDao {
    /**
     * 新建订单
     *
     * @param order
     */
    void create(Order order);

    /**
     * 更新
     *
     * @param userId
     * @param status
     */
    void update(@Param("userId") Long userId, @Param("status") Integer status);
}
